package com.xyy.saas.payment.merchant.core.dto;

import lombok.Data;

@Data
public class QueryAccountDto {
    /**
     * 支付平台商户标识
     */
    private String userId;
    /**
     * 商户业务线
     */
    private String businessIdType;
    /**
     * 渠道账户号
     */
    private String thirdUserId;
    /**
     * 账户类型 com.xyy.saas.payment.cores.enums.BalanceAccountTypeEnum
     */
    private String balanceAccountType;

    /**
     * 构建对象
     */
    public static QueryAccountDto build(String businessIdType, String accountId, String thirdUserId) {
        QueryAccountDto queryAccountDto = new QueryAccountDto();
        queryAccountDto.setBusinessIdType(businessIdType);
        queryAccountDto.setUserId(accountId);
        queryAccountDto.setThirdUserId(thirdUserId);
        return queryAccountDto;
    }

    /**
     * 构建对象
     */
    public static QueryAccountDto build(String businessIdType, String accountId, String thirdUserId, String balanceAccountType) {
        QueryAccountDto queryAccountDto = new QueryAccountDto();
        queryAccountDto.setBusinessIdType(businessIdType);
        queryAccountDto.setUserId(accountId);
        queryAccountDto.setThirdUserId(thirdUserId);
        queryAccountDto.setBalanceAccountType(balanceAccountType);
        return queryAccountDto;
    }
}
